package com.javen.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Picture extends Model<Picture> {
	private static final long serialVersionUID = 1L;
	public static final Picture dao=new Picture();
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/**
	 * 根据foreignId查询订单
	 * @param openId
	 * @return
	 */
	public List<Picture> getOrderByForeignId(String foreignId){
		return dao.find("select * from picture where foreignId=?",foreignId);
	}
}
